package com.itheima.常用API.基本类型包装类;

import java.util.Scanner;

public class 快排数组 {
    public static void main(String[] args) {
        int[] arr = {};
        System.out.println();
        while (true) {
            System.out.println("排序前数组:   ");
            for (int i = 0; i < arr.length; i++) {
                System.out.print(arr[i] + " ");
            }
            arr = kaiPai(arr);
            System.out.println("排序后数组:   ");
            for (int i = 0; i < arr.length; i++) {
                System.out.print(arr[i] + " ");
            }
        }
    }

    private static int[] kaiPai(int[] arr) {
        int[] a = new int[arr.length];
        a[0] = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] > a[i - 1]) {

            }
        }
        return a;
    }
}
